package cn.wizzer.app.crown.modules.models.enums;

import java.util.*;
import java.util.stream.Collectors;

/**
 * 赛事分类
 */
public enum MatchTypeEnum {
    // 足球
    FOOTBALL("FT", "足球", "", "");

    private String type;

    private String cn;

    private String tw;

    private String en;


    MatchTypeEnum(String type, String cn, String tw, String en) {
        this.type = type;
        this.cn = cn;
        this.tw = tw;
        this.en = en;
    }


    public String getType() {
        return type;
    }


    public String getCn() {
        return cn;
    }

    public void setCn(String cn) {
        this.cn = cn;
    }

    public String getTw() {
        return tw;
    }

    public String getEn() {
        return en;
    }

    public static List toList() {
        List<Map<String, Object>> list = new ArrayList<>();
        for (MatchTypeEnum matchTypeEnum : MatchTypeEnum.values()) {
            Map<String, Object> map = new HashMap<>();
            map.put("name", matchTypeEnum.getCn());
            map.put("val", matchTypeEnum);
            list.add(map);
        }
        return list;
    }

}

